﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkWithFile
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Please, enter file path: ");
            string path = Console.ReadLine();

            FileBuilder file = new FileBuilder(path);


            //write to file
            file.WriteToFile(MessageBuilder.BuildMessage());

            //read from file
            string str = file.ReadFromFile();
            Console.WriteLine("File: {0}", str);

            Console.ReadKey();
        }
    }
}
